import request from "@/utils/request";

// 查询仓库管理列表
export function listErpWareHouse(query) {
  return request({
    url: "/erp/ErpWareHouse/list",
    method: "get",
    params: query,
  });
}

// 查询仓库管理详细
export function getErpWareHouse(wareId) {
  return request({
    url: "/erp/ErpWareHouse/" + wareId,
    method: "get",
  });
}

// 新增仓库管理
export function addErpWareHouse(data) {
  return request({
    url: "/erp/ErpWareHouse",
    method: "post",
    data: data,
  });
}

// 修改仓库管理
export function updateErpWareHouse(data) {
  return request({
    url: "/erp/ErpWareHouse",
    method: "put",
    data: data,
  });
}

// 删除仓库管理
export function delErpWareHouse(wareId) {
  return request({
    url: "/erp/ErpWareHouse/" + wareId,
    method: "delete",
  });
}


// 查询仓库商品库存列表
export function getCommodityNumberList(query) {
  return request({
    url: "/erp/ErpWareHouse/getCommodityNumberList",
    method: "get",
    params: query,
  });
}